package com.biostime.qdingding.modules.qd.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.qdingding.common.service.CrudService;
import com.biostime.qdingding.modules.qd.dao.PrivilegeDao;
import com.biostime.qdingding.modules.qd.entity.Privilege;

/**
 * 返款特权Service
 * @author phil
 * @version 2015-12-16
 */
@Service
@Transactional(readOnly = true)
public class PrivilegeService extends CrudService<PrivilegeDao, Privilege> {

	public Privilege getPrivilege(Privilege leavePriv) {
		return dao.getPrivilege(leavePriv);
	}
	
	public Privilege apiGetPrivilege(String type,String contractId){
		return dao.apiGetPrivilege(type, contractId);
	}
	
	public int apiUpdatePrivilege(String id ,int used){
		return dao.apiUpdatePrivilege(id, used);
	}
	
}
